import Vue from 'vue'
import Router from 'vue-router'

//pc端组件
import pc from '@/components/pc'  
import pcindex from '@/components/pcindex'//首页
import pcSchool from '@/components/pcSchool' //院校大全
import introduce from '@/components/pcsintroduce' //院校介绍
import pcprofes from '@/components/pcprofes'  //专业大全



//移动端组件
import webapp from '@/components/webapp'  

Vue.use(Router)

export default new Router({
  routes: [

  //pc端
 	 {
	  path:'/pc',
	  name:'pc',
	  component:pc,
	  children:[
	    {
	 	path:'pcindex',
	  name:'pcindex',
	  component:pcindex,
	 },
	 //院校大全
	 {	
	 	path:'pcSchool',name:'pcSchool',component:pcSchool,
	 }, 
	 {//院校介绍
	 	path:'pcintroduce',name:'introduce',component:introduce
	 },
	 //专业大全
	 {
	 	path:'pcProfes',
	  name:'pcprofes',
	  component:pcprofes,
	 },
  
	  ]
	
	 },
	
  	    
  	   //移动端
  	 {
  	  path:'/webapp',
  	  name:'webapp',
  	  component:webapp
  	 },
  	

//   	{
//   	path: "*",
//  	redirect:'/index'
//  }

  ]
})
